"use strict";
require([
  // 'bootstrap',
  'polyfill',
  './dev/layer',
  './dev/nav',
  './dev/book',
  './conf/baseConfig',
  './dev/link'
], function (polyfill, layer, nav, book, baseConfig, Link) {
  nav.showNav();
  //layer.loadLayer()

  const books = sessionStorage.getItem("books").split(","),
    amount = books.length,
    SerPath = baseConfig.serUrl,
    packName = books[0].split("/")[3],
    filename = books[0].split("/")[books[0].split("/").length - 1].split("1")[0],
    config = {
      amount,
      SerPath,
      packName,
      filename
    };
  book.bookMaz(config)


});

